-- GENERATED SPELL FOR [Raving Owlbeast] --


function spell0_17188(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_17188', 613, 1)
end

function Sorts_17188(pUnit, Event)
local choix_sorts_17188 = math.random(0, 0)
if choix_sorts_17188 == 0 then
pUnit:RegisterEvent('spell0_17188', 1, 1)
end
end

function mob17188_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17188', math.random(1500, 3000), 1)
end

function mob17188_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17188_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17188_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17188, 1, 'mob17188_Action')
RegisterUnitEvent(17188, 2, 'mob17188_Leave')
RegisterUnitEvent(17188, 3, 'mob17188_Kill')
RegisterUnitEvent(17188, 4, 'mob17188_Die')
